﻿

using Ccteg.Common;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.JsonPatch.Internal;
using Microsoft.Extensions.Configuration;
using Org.BouncyCastle.Utilities.Net;
using System.IO;

namespace Cctegaq.Api
{
    /// <summary>
    /// 
    /// </summary>
    public class Program
    {


        public static void Main(string[] args)
        {
            string url = ConfigurationManager.ConsulServiceSettings.ServiceScheme + "://*:" + ConfigurationManager.ConsulServiceSettings.ServicePort;
             // string url = ConfigurationManager.ConsulServiceSettings.ServiceScheme + "://" + ConfigurationManager.ConsulServiceSettings.ServiceIP + ":" + ConfigurationManager.ConsulServiceSettings.ServicePort;
            var host = WebHost.CreateDefaultBuilder(args).UseUrls(url)
                         .UseStartup<Startup>()
                             .Build();
            host.Run();

        }


    }
}
